using System;
namespace AppToolKit.Model.Validation.Attribute
{
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
	public class RuleAttribute :System.Attribute
	{
		private ValidateBehavior behavior_;
		public ValidateBehavior Behavior
		{
			get
			{
				return this.behavior_;
			}
			set
			{
				this.behavior_ = value;
			}
		}
		public RuleAttribute(ValidateBehavior behavior)
		{
			this.behavior_ = behavior;
		}
		public virtual IValidator CreateVaildator()
		{
			throw new Exception("The method or operation is not implemented.");
		}
	}
}
